cmake_minimum_required(VERSION 3.10)
project(IIR_Bandpass_Demo)

# 设置C++标准
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 添加头文件搜索路径
include_directories(
    ${CMAKE_SOURCE_DIR}/../../include
    ${CMAKE_SOURCE_DIR}/../../3rdParty/include
)

# 添加库文件搜索路径
# link_directories(${CMAKE_SOURCE_DIR}/../lib)

# 添加nlohmann/json库
# include(FetchContent)
# FetchContent_Declare(
#     json
#     URL https://github.com/nlohmann/json/releases/download/v3.11.2/json.tar.xz
# )
# FetchContent_MakeAvailable(json)

# 添加可执行文件
add_executable(iir_bandpass_demo main.cpp)

# 链接splab库
# target_link_libraries(filtfiltDemo splab)

# 链接nlohmann/json库
# target_link_libraries(iir_bandpass_demo PRIVATE nlohmann_json::nlohmann_json)

# 添加头文件路径
target_include_directories(iir_bandpass_demo PRIVATE 
    ${CMAKE_SOURCE_DIR}/../include
    ${CMAKE_SOURCE_DIR}/../3rdParty/include
)

# 设置输出目录
# set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) 